﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FactoryMethod
{
    class Program
    {
        static void Main(string[] args)
        {
            FactoryMethod factory = new FactoryMethod();

            Button winButton = factory.CreateButton("win");
            winButton.WhoAmI();

            Button macButton = factory.CreateButton("mac");
            macButton.WhoAmI();

            Console.Read();
        }
    }
}
